package com.wuseguang.springcloud.dao.repository;

import com.wuseguang.springcloud.entity.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;


public interface TeacherRepository extends JpaRepository<Teacher, Integer> {

    /**
     * 根据手机号码查询老师信息
     * @param phone 手机号码
     * @return
     */
    Teacher findByPhone(String phone);
}
